<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
   
 </body>
   <script>
      //输入一个正整数，将该数的各位左右反转输出，
	  //即输入123，输出321
        
		//var n = window.prompt("请输入一个数");
       // var str = n.split("").reverse().join("");
		//console.log(parseInt(str));
	    
	  //假设你银行卡中有本金10000元，银行每年利息为
	  //千分之五,计算n年之后你卡中有多少钱
      
	  var money = parseInt(window.prompt("请输入卡中的金额"));
	  var year = parseInt(window.prompt("请输入存储的年限"));
      
	  for(var i = 0;i < year;i++){
	     money = money + (money * 0.005);
	  }
	  console.log(money);

   </script>
</html>
